<?php
if(!defined('IN_DISCUZ')) {
	exit('Access Denied');
}

class plugin_unifiedpay {

}

class plugin_unifiedpay_home extends plugin_unifiedpay {
	public function spacecp_payment_redirect_extend_output($value) {
		global $_G, $pay_channel, $order_id, $pay_url, $result, $order;
		if($value['template'] == 'spacecp_payment_redirect'){
			$out_biz_no = $order['out_biz_no'];
			$type = $result['type'];
			$money = sprintf('%.2f', $order['amount']/100);
			$channel_name = lang('plugin/unifiedpay', 'payment_'.$pay_channel);
			include template('unifiedpay:payment_redirect');
			exit;
		}
	}
}

class mobileplugin_unifiedpay_home extends plugin_unifiedpay {
	public function spacecp_payment_redirect_extend_output($value) {
		global $_G, $pay_channel, $order_id, $pay_url, $result, $order;
		if($value['template'] == 'spacecp_payment_redirect'){
			$out_biz_no = $order['out_biz_no'];
			$type = $result['type'];
			$money = sprintf('%.2f', $order['amount']/100);
			$channel_name = lang('plugin/unifiedpay', 'payment_'.$pay_channel);
			include template('unifiedpay:payment_redirect');
			exit;
		}
	}
}